﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace utils
{
    public class ApiResponse
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public object Data { get; set; } // 可以根据需要定义具体类型
    }

    public class GenerateSerApiResponse
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public List<MacAddressPool> Data { get; set; }
    }

    public class MacAddressPool
    {
        public long Id { get; set; }
        public string MacAddress { get; set; }
        public DateTime CreateTime { get; set; }
        public int IsAllocated { get; set; }
        public int Batche { get; set; }
        public DateTime UpdateTime { get; set; }
    }

    public class SerListApiResponse
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public List<Ser> Data { get; set; }
    }

    public class Ser
    {
        public int Id { get; set; }
        public string Order { get; set; }
        public string Model { get; set; }
        public string StartMacAddress { get; set; }
        public string EndMacAddress { get; set; }
        public int Quantity { get; set; }
        public string MemoryAddr { get; set; }
        public string ChipName { get; set; }
        public DateTime CreateTime { get; set; }
    }

    public class TransportPrintApiResponse
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public TransportPrint Data { get; set; }
    }

    public class TransportPrint
    {
        public int Id { get; set; }
        public int CodeId { get; set; }
        public string CoverCode { get; set; }
        public string MacAddress { get; set; }
        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
        public int PrintCount { get; set; }
    }
    public class GetCodeDataApiResponse
    {

        public int Code { get; set; }
        public string Message { get; set; }
        public GetCodeData Data { get; set; }

    }

    public class GetCodeData
    {
        public string batch { get; set; }
        public string code { get; set; }
        public string firmware { get; set; }
    
    }

    public class InnerPrintApiResponse
    {
        public int Code { get; set; }
        public string Message { get; set; }
        public InnerPrint Data { get; set; }
    }

    public class InnerPrint
    {   public string ProductionDate { get; set; }
        public string ExpiryDate { get; set; }
        public string ProductionBatch { get; set; }
        public string SerialCode { get; set; }
    }
}
